/// breedGroupId : 1
/// createTime : "2024-03-07 16:17:39"
/// imageUrl : "https://www.thesprucepets.com/thmb/0boc2vA7cgTbugzoEoqbdwkfpxs=/1500x0/filters:no_upscale():strip_icc():format(webp)/GettyImages-106465613-0f8331340ab3444fa45ce3063e4f153e.jpg"
/// name : "分组1"
/// petType : 1

class BreedGroup {
  BreedGroup({
    this.breedGroupId,
    this.createTime,
    this.imageUrl,
    this.name,
    this.petType,
  });

  BreedGroup.fromJson(dynamic json) {
    breedGroupId = json['breedGroupId'];
    createTime = json['createTime'];
    imageUrl = json['imageUrl'];
    name = json['name'];
    petType = json['petType'];
  }

  num? breedGroupId;
  String? createTime;
  String? imageUrl;
  String? name;
  num? petType;

  BreedGroup copyWith({
    num? breedGroupId,
    String? createTime,
    String? imageUrl,
    String? name,
    num? petType,
  }) =>
      BreedGroup(
        breedGroupId: breedGroupId ?? this.breedGroupId,
        createTime: createTime ?? this.createTime,
        imageUrl: imageUrl ?? this.imageUrl,
        name: name ?? this.name,
        petType: petType ?? this.petType,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['breedGroupId'] = breedGroupId;
    map['createTime'] = createTime;
    map['imageUrl'] = imageUrl;
    map['name'] = name;
    map['petType'] = petType;
    return map;
  }
}
